package com.practice.mybatis.v2.config;

public class Configuration {
	
	private String scanPath;
	
	private MapperRegistory registory = new MapperRegistory();
	
	public Configuration scanPath(String scanPath) {
		this.scanPath = scanPath;
		return this;
	}
	
	public void build() {
		if (scanPath == null || scanPath.length() < 1) {
			throw new RuntimeException("scan path is required...");
		}
	}

	public MapperRegistory getRegistory() {
		return registory;
	}

}
